package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 库存预警枚举
 *
 * @author feng.zheng
 * @version v1.0
 * @date 2019/10/28 16:33
 * @since v1.0
 */
@Getter
public enum ProductNotifyEnum {
    //
    SPECIFICATION("array_1", "enum.productNotify.name.specification", "specification"),
    WAREHOUSE_NAME("text_1", "enum.productNotify.name.warehouse_name", "warehouseName"),
    STOCK_LOWER_LIMIT("num_3", "enum.productNotify.name.stock_lower_limit", "stockLowerLimit"),
    STOCK_UPPER_LIMIT("num_4", "enum.productNotify.name.stock_upper_limit", "stockUpperLimit"),
    ;

    /**
     * attr
     */
    private String attr;
    /**
     * 名称
     */
    private String name;

    /**
     * saasAttr
     */
    private String saasAttr;


    ProductNotifyEnum(String attr, String name, String saasAttr) {
        this.attr = attr;
        this.name = name;
        this.saasAttr = saasAttr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
